<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>GWU Group Project - Login</title>
</head>
<body>
 
<h2>Contact Manager</h2>
 
<form:form method="post" action="loginUser.html" commandName="login">
 
    <table>
    <tr>
        <td><form:label path="username">Username</form:label></td>
        <td><form:input path="username" path="username" /></td>
    </tr>
    <tr>
        <td><form:label path="password">Password</form:label></td>
        <td><form:input type="password" path="password" /></td>
    </tr>
    <tr>
 		<td colspan="2">
            <input type="submit" value="Login"/>
        </td>
        <td>
		<button onClick="this.form.action='createUser.html'; this.form.submit(); return true;">Create Account</button>	
        </td>
    </tr>
</table> 
</form:form>
 
</body>
</html>